package com.zh.webflux.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "tb_sub_user_info")
public class SubUserInfo {
	@Id
	
    @Column(name = "sub_user_id")
    private Integer subUserId;

    /**
     * 分享人openId
     */
    @Column(name = "open_id")
    private String openId;

    /**
     * 微信昵称
     */
    @Column(name = "nick_name")
    private String nickName;

    /**
     * 微信头像
     */
    private String headimgurl;

    /**
     * 性别()
     */
    private Integer sex;

    /**
     * 扫码时间
     */
    @Column(name = "create_date")
    private Date createDate;

    /**
     * 扫码人openid
     */
    @Column(name = "from_openid")
    private String fromOpenid;

    /**
     * @return sub_user_id
     */
    public Integer getSubUserId() {
        return subUserId;
    }

    /**
     * @param subUserId
     */
    public void setSubUserId(Integer subUserId) {
        this.subUserId = subUserId;
    }

    /**
     * 获取分享人openId
     *
     * @return open_id - 分享人openId
     */
    public String getOpenId() {
        return openId;
    }

    /**
     * 设置分享人openId
     *
     * @param openId 分享人openId
     */
    public void setOpenId(String openId) {
        this.openId = openId;
    }

    /**
     * 获取微信昵称
     *
     * @return nick_name - 微信昵称
     */
    public String getNickName() {
        return nickName;
    }

    /**
     * 设置微信昵称
     *
     * @param nickName 微信昵称
     */
    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    /**
     * 获取微信头像
     *
     * @return headimgurl - 微信头像
     */
    public String getHeadimgurl() {
        return headimgurl;
    }

    /**
     * 设置微信头像
     *
     * @param headimgurl 微信头像
     */
    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    /**
     * 获取性别()
     *
     * @return sex - 性别()
     */
    public Integer getSex() {
        return sex;
    }

    /**
     * 设置性别()
     *
     * @param sex 性别()
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * 获取扫码时间
     *
     * @return create_date - 扫码时间
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * 设置扫码时间
     *
     * @param createDate 扫码时间
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * 获取扫码人openid
     *
     * @return from_openid - 扫码人openid
     */
    public String getFromOpenid() {
        return fromOpenid;
    }

    /**
     * 设置扫码人openid
     *
     * @param fromOpenid 扫码人openid
     */
    public void setFromOpenid(String fromOpenid) {
        this.fromOpenid = fromOpenid;
    }
}